package Shale;

import java.util.Comparator;

/**
 * 基于hwm Sj的优先级对排期进行排序
 * @author leiwenkang 
 * Created on 2022-01-26
 */
public class HwmComparator implements Comparator<Demand>  {

    @Override
    public int compare(Demand demand1, Demand demand2) {
        return Double.compare(demand1.getSupply(), demand2.getSupply());
    }
}
